package com.jn.factory.simplefactory.pizzastore.pizza;

/**
 * @author 江南大学1033190417
 * @date 2022/4/10 17:29
 */
public  abstract class Pizza {
    protected String name;

    //抽象方法必须继承
    public abstract void prepare();


    public void bake() {
        System.out.println(name + " baking;");
    }

    public void cut() {
        System.out.println(name + " cutting;");
    }

    public void box() {
        System.out.println(name + " boxing;");
    }

    public void setName(String name) {
        this.name = name;
    }
}
